package com.usian.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

public class Bumen implements Serializable {

    @Id
    private Integer bid;

    private String bname;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createdate;

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    @Override
    public String toString() {
        return "Bumen{" +
                "bid=" + bid +
                ", bname='" + bname + '\'' +
                ", createdate=" + createdate +
                '}';
    }
}
